package cn.cybozu.api;

import java.util.Collection;

public class KintoneRequest
{
	private CybozuRestMethod method;
	private KintoneRecord record;
	private Collection<KintoneRecord> records;
	private Long appId;
	
	public KintoneRequest(Long appId, CybozuRestMethod method, KintoneRecord record)
	{
		this.method = method;
		this.appId = appId;
		this.record = record;
	}
	public KintoneRequest(Long appId, CybozuRestMethod method, Collection<KintoneRecord> records)
	{
		this.method = method;
		this.appId = appId;
		this.records = records;
	}
	public CybozuRestMethod getMethod()
	{
		return method;
	}
	public void setMethod(CybozuRestMethod method)
	{
		this.method = method;
	}
	public KintoneRecord getRecord()
	{
		return record;
	}
	public void setRecord(KintoneRecord record)
	{
		this.record = record;
	}
	public Collection<KintoneRecord> getRecords()
	{
		return records;
	}
	public void setRecords(Collection<KintoneRecord> records)
	{
		this.records = records;
	}
	public Long getAppId()
	{
		return appId;
	}
	public void setAppId(Long appId)
	{
		this.appId = appId;
	}
}
